import service from '@/utils/request'
// @Tags CaseManagement
// @Summary 创建案件管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CaseManagement true "创建案件管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /CM/createCaseManagement [post]
export const createCaseManagement = (data) => {
  return service({
    url: '/CM/createCaseManagement',
    method: 'post',
    data
  })
}

// @Tags CaseManagement
// @Summary 删除案件管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CaseManagement true "删除案件管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /CM/deleteCaseManagement [delete]
export const deleteCaseManagement = (params) => {
  return service({
    url: '/CM/deleteCaseManagement',
    method: 'delete',
    params
  })
}

// @Tags CaseManagement
// @Summary 批量删除案件管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除案件管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /CM/deleteCaseManagement [delete]
export const deleteCaseManagementByIds = (params) => {
  return service({
    url: '/CM/deleteCaseManagementByIds',
    method: 'delete',
    params
  })
}

// @Tags CaseManagement
// @Summary 更新案件管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.CaseManagement true "更新案件管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /CM/updateCaseManagement [put]
export const updateCaseManagement = (data) => {
  return service({
    url: '/CM/updateCaseManagement',
    method: 'put',
    data
  })
}

// @Tags CaseManagement
// @Summary 用id查询案件管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.CaseManagement true "用id查询案件管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /CM/findCaseManagement [get]
export const findCaseManagement = (params) => {
  return service({
    url: '/CM/findCaseManagement',
    method: 'get',
    params
  })
}

// @Tags CaseManagement
// @Summary 分页获取案件管理列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取案件管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /CM/getCaseManagementList [get]
export const getCaseManagementList = (params) => {
  return service({
    url: '/CM/getCaseManagementList',
    method: 'get',
    params
  })
}

// @Tags CaseManagement
// @Summary 不需要鉴权的案件管理接口
// @Accept application/json
// @Produce application/json
// @Param data query flaudReq.CaseManagementSearch true "分页获取案件管理列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /CM/getCaseManagementPublic [get]
export const getCaseManagementPublic = () => {
  return service({
    url: '/CM/getCaseManagementPublic',
    method: 'get',
  })
}
